package com.big.app.controller;


import com.big.app.entity.ShoppingDetails;
import com.big.app.service.intf.ShoppingDetailsService;
import com.big.app.vo1.R;

import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@CrossOrigin// 跨域
@Api(value = "用户注册操作",tags = "用户注册操作")
public class ShoppingDetailsController {

    @Autowired
    private ShoppingDetailsService service;

    @PostMapping("/api/shoppingdetails/details.do")
    @ResponseBody
    public R b(@RequestBody ShoppingDetails shoppingDetails){
        //System.out.println(urls.getLikecount()+""+urls.getTag()+""+urls.getId());
        return service.select(shoppingDetails);
    }
}
